<link type="text/css" rel="stylesheet" href="<?php echo $this->basePath('public/css/dbblack/css/ucenter.css'); ?>" />

<div class="container clearfix">
    <?php echo $this->partial('shopfront/home/left_menu.phtml'); ?>
    <div class="content clearfix uc-content">
        <h1 class="title"><span><?php echo $this->translate('我的收藏'); ?>：</span></h1>
        <?php if ($this->favorites_list->getTotalItemCount() > 0) { ?>
            <table class="simple attention">
                <tr>
                    <th width="100"></th> <th><?php echo $this->translate('商品'); ?></th><th width="110"><?php echo $this->translate('操作'); ?></th>
                </tr>
                <?php foreach ($this->favorites_list as $favorites_key => $favorites_value) { ?>
                <tr class="<?php echo $favorites_key%2==1 ? 'even' : 'odd'; ?>">
                    <td><a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$favorites_value['goods_id'], 'class_id'=>$favorites_value['class_id'])); ?>" target="_blank"><img src="<?php echo $this->basePath($this->frontwebsite()->shopGoodsImage($favorites_value['goods_thumbnail_image'])); ?>" width="60" height="60"></a></td>
                    <td><a href="<?php echo $this->url('frontgoods/default', array('goods_id'=>$favorites_value['goods_id'], 'class_id'=>$favorites_value['class_id'])); ?>" target="_blank"><?php echo $this->escapeHtml($favorites_value['goods_name']); ?></a></td>
                    <td><p class="pt5">&nbsp;&nbsp;<a href="<?php echo $this->url('frontfavorites/default/favorites_id', array('action'=>'del','favorites_id'=>$favorites_value['favorites_id'])); ?>" onclick="return window.confirm('<?php echo $this->translate('您确实要删除该收藏商品吗？'); ?>');" ><?php echo $this->translate('删除'); ?></a></p></td>
                </tr>
                <?php } ?>
            </table>
            <div class="page-nav"><?php echo ( count($this->favorites_list) > 0 ) ? $this->paginationControl($this->favorites_list, 'Sliding', 'site/dbpage',array('page_url'=>$this->url('frontfavorites/default/favorites_page', array('action'=>'index')))) : ""; ?></div>
            <?php } else { ?>
            <p><?php echo $this->translate('暂无商品收藏！'); ?></p>
            <?php } ?>
    </div>
</div>
